import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        ecgConfig: null
    },
    mutations: {
        SAVE_ECG_CONGIG (state, ecgConfig) {
            state.ecgConfig = ecgConfig
        }
    },
    getters: {
        ecgConfig (state) {
            return state.ecgConfig
        }
    }
})
